From: Debian Science Maintainers Date: Mon, 27 Jul 2026 14:37:42 +0000 (+0200) Subject: matplotlib_nullptr_s390x X-Git-Tag: archive/raspbian/9.6.2+dfsg1-4+rpi1^2^2~4 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d2474adf7e37599972dd2597d2ffe3e48112fcf4;p=vtk9.git matplotlib_nullptr_s390x =================================================================== Gbp-Pq: Name matplotlib_nullptr_s390x.patch --- diff --git a/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx b/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx index 3e6b219f0..714723e5d 100644 --- a/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx +++ b/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx @@ -1023,6 +1023,12 @@ bool vtkMatplotlibMathTextUtilities::RenderOneCell(vtkImageData* image, int bbox return false; } + if (ptr == nullptr) + { + vtkErrorMacro("image returned null ScalarPointer."); + return false; + } + // Background, do not load python data if (row > pythonRowStart || col < pythonColStart || row <= pythonRowEnd || col >= pythonColEnd)